package com.alibaba.dubbo.remoting;

import java.net.InetAddress;
import java.util.Map;

/**
 * 
 * @author junbo.ruan
 * qq:33224696
 */
public class InterceptBean {
	/**
	 * 远程连接ip地址, 所有阶段都有
	 */
	private InetAddress remoteAddress;
	/**
	 * 解码数据总长度
	 */
	private int decodeTotalLength;
	/**
	 * 解码时数据体长度
	 */
	private int decodeBodyLength;
	/**
	 * 解码header之后的headers内容
	 */
	private Map<String, String> decodeHeaders;
	/**
	 * 远程调用信息
	 */
	private RemoteCalling calling;
	
	/**
	 * 应答头部信息
	 */
	private Map<String, String> encodeHeaders;

	public InetAddress getRemoteAddress() {
		return remoteAddress;
	}

	public void setRemoteAddress(InetAddress remoteAddress) {
		this.remoteAddress = remoteAddress;
	}

	public int getDecodeTotalLength() {
		return decodeTotalLength;
	}

	public void setDecodeTotalLength(int decodeTotalLength) {
		this.decodeTotalLength = decodeTotalLength;
	}

	public int getDecodeBodyLength() {
		return decodeBodyLength;
	}

	public void setDecodeBodyLength(int decodeBodyLength) {
		this.decodeBodyLength = decodeBodyLength;
	}

	public Map<String, String> getDecodeHeaders() {
		return decodeHeaders;
	}

	public void setDecodeHeaders(Map<String, String> decodeHeaders) {
		this.decodeHeaders = decodeHeaders;
	}

	public RemoteCalling getCalling() {
		return calling;
	}

	public void setCalling(RemoteCalling calling) {
		this.calling = calling;
	}

	public Map<String, String> getEncodeHeaders() {
		return encodeHeaders;
	}

	public void setEncodeHeaders(Map<String, String> encodeHeaders) {
		this.encodeHeaders = encodeHeaders;
	}
}

 